projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52cc7c5
)
* wakeup.c: Use CPP tangle from autoconf manual to #include the
author
Jim Blandy
<jimb@redhat.com>
Sun, 18 Jul 1993 06:13:07 +0000
(06:13 +0000)
committer
Jim Blandy
<jimb@redhat.com>
Sun, 18 Jul 1993 06:13:07 +0000
(06:13 +0000)
correct combination of <time.h> and <sys/time.h>.
lib-src/wakeup.c
patch
|
blob
|
history
diff --git
a/lib-src/wakeup.c
b/lib-src/wakeup.c
index 07c324d12101660cbc5e3c79e7478b5843f51e66..e481bee8324fd6d57237403927b1f7f3f5a062a3 100644
(file)
--- a/
lib-src/wakeup.c
+++ b/
lib-src/wakeup.c
@@
-1,9
+1,20
@@
/* Program to produce output at regular intervals. */
+#include "config.h"
+
#include <stdio.h>
-#include <time.h>
#include <sys/types.h>
+
+#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
struct tm *localtime ();